package com.zhongwang.business.module.baseCostManage.dao;


import com.zhongwang.business.module.baseCostManage.model.WeightHoursModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface WeightHoursDao {
    /**查询设计工时*/
    List<WeightHoursModel>selectDesignHours(WeightHoursModel weighthoursmodel);

    /**查询设备重量*/
    List<WeightHoursModel>selectDesignWeight(WeightHoursModel weighthoursmodel);

    /**添加设计工时*/
    int insertDesign(WeightHoursModel weighthoursmodel);

    /**修改设计工时*/
    int updateDesign(WeightHoursModel weighthoursmodel);

    /**添加设备重量*/
    int insertEquipment(WeightHoursModel weighthoursmodel);

    /**修改设备重量*/
    int updateEquipment(WeightHoursModel weighthoursmodel);

    /**单条工时数据*/
    WeightHoursModel selectHoursOne(Integer desId);

    /**单条重量数据*/
    WeightHoursModel selectWeightOne(Integer weiId);

    /**删除工时数据*/
    int upDelHours(@Param("desId") Integer desId,@Param("desDeleteFlag") int desDeleteFlag);

    /**删除重量数据*/
    int upDelWeight(@Param("weiId") Integer weiId,@Param("weiDeleteFlag") int weiDeleteFlag);

    /**工时数据删除校验逻辑判断1*/
    List<WeightHoursModel> selectDesHoursDel1(WeightHoursModel weighthoursmodel);

    /**工时数据删除校验逻辑判断2*/
    List<WeightHoursModel> selectDesHoursDel2(WeightHoursModel weighthoursmodel);

    /**按条件清空工时数据*/
     int deleteDesHours(WeightHoursModel weighthoursmodel);

    /**工时数据删除校验逻辑判断1*/
    List<WeightHoursModel> selectDesWeightDel3(WeightHoursModel weighthoursmodel);

    /**工时数据删除校验逻辑判断2*/
    List<WeightHoursModel> selectDesWeightDel4(WeightHoursModel weighthoursmodel);

    /**按条件清空工时数据*/
    int deleteDesWeight(WeightHoursModel weighthoursmodel);
}